package xkp.lesson.springboot_shiro.dao;

import org.apache.ibatis.annotations.Mapper;
import xkp.lesson.springboot_shiro.entity.Resource;

import java.util.List;

@Mapper
public interface ResourceDao {
    int deleteByPrimaryKey(Integer resourceId);

    int insert(Resource record);

    int insertSelective(Resource record);

    Resource selectByPrimaryKey(Integer resourceId);

    int updateByPrimaryKeySelective(Resource record);

    int updateByPrimaryKey(Resource record);

    List<Resource> selectResourcesByUserId(Integer userId);
}